<?php
$t=date("Y-m-d H:i:s")."\n";
echo $t;
$handle = fopen("time_note.txt", "a+");
$w=fwrite($handle, $t);
var_dump($w);
?>
<html>
	<head>
		<meta charset="UTF-8">
		<title>时间记录</title>
	</head>
<body>
<script type="text/javascript">
	var int=self.setInterval("clock()",60000)
	function clock(){
		window.location.href='time_note.php';
	}
</script>
</body>
</html>